Skip to contentSkip to conversation

drm_sysfs_connector - BUG: unable to handle kernel NULL pointer dereference at 0000000000000038

Bug 97460 [email protected] 1 participant 7 messages Aug 24, 2016 – Aug 31, 2016

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=97460

Bug ID: 97460
Summary: [drm][amdgpu][CIK] drm_sysfs_connector - BUG: unable
to handle kernel NULL pointer dereference at 0000000000000038
Product: DRI
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: DRM/AMDgpu
Assignee: [email protected]
Reporter: [email protected]

Created attachment 125990
--> https://bugs.freedesktop.org/attachment.cgi?id=125990&action=edit
Dmesg of kernel bootup - 4.7.0 kernel

When trying to enable Switchable Graphics, I am unable to bootup.

With 4.7.0 it booted but no X display could start
With 4.8-rcX it deadlocks on bootup now.

1) If the LCD (LVDS) display lid is open, no such kernel panic message is displayed and deadlocks bootup.
2) It the lid is closed, a panic message is shown (and deadlocks bootup).

Trying to enable PRIME on AMDGPU with CIK experimental enabled fails. attached to this BZ is dmesg of oops from 4.7.0 kernel, the stack is the same for 4.8-rcX.

PRIME has never worked for me on AMDGPU it has worked on regular radeon however.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=97460

--- Comment #1 from Shawn Starr <[email protected]> --- Adding some debug when not using Switchable Graphics:

[   10.048669] [drm] amdgpu_connector_add(): dp bridge encoder name: 0x1e
[   10.048672] [drm] amdgpu_connector_add() no dp_bridge: connecter_type found:
7
[   10.048684] [drm] forcing LVDS-1 connector OFF
[   10.048721] [drm] amdgpu_connector_add(): dp bridge encoder name: 0x20
[   10.048724] [drm] amdgpu_connector_add() no dp_bridge: connecter_type found:
10
[   10.048811] [drm] amdgpu_connector_add(): dp bridge encoder name: 0x20
[   10.048814] [drm] amdgpu_connector_add() no dp_bridge: connecter_type found:
10
[   10.048877] [drm] amdgpu_connector_add(): dp bridge encoder name: 0x21
[   10.048880] [drm] amdgpu_connector_add() no dp_bridge: connecter_type found:
10
[   10.048933] [drm] amdgpu_connector_add(): dp bridge encoder name: 0x15
[   10.048937] [drm] amdgpu_connector_add() no dp_bridge: connecter_type found:

1

When using Switchable Graphics:

[ X.XXXXXXX] [drm] amdgpu_connector_add(): dp bridge encoder name: 0x1e
[ X.XXXXXXX] [drm] amdgpu_connector_add() no dp_bridge: connecter_type found:
-16345243

Then we panic/deadlock.

amdgpu_atombios_get_connector_info_from_object_table() vs radeon_get_atom_connector_info_from_object_table()

Perhaps there's a bug in the parsing? This works fine with radeon.ko.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97460

--- Comment #2 from Alex Deucher <[email protected]> --- Created attachment 126010
--> https://bugs.freedesktop.org/attachment.cgi?id=126010&action=edit
workaround

This patch should work around the crash. No idea why the bios is broken in amdgpu and fine on radeon in the switchable gfx case.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97460

--- Comment #3 from Alex Deucher <[email protected]> --- Created attachment 126011
--> https://bugs.freedesktop.org/attachment.cgi?id=126011&action=edit
additional workaround

Skip analog TV and CV connectors as the hw doesn't support them.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97460

--- Comment #4 from Shawn Starr <[email protected]> --- This patch worksaround issue for me thank you Alex for your help on IRC debugging this today

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=97460

Alex Deucher <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Alex Deucher <[email protected]> --- Workaround committed.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel